/*
** 1517.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Thu Oct 16 20:52:19 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "1517.h" */
#include <stdio.h>

int main()
{
     int i;
     double e;
     int factor;

     printf("n e\n");
     printf("- -----------\n");
     /* treating, hahaha */
     printf("0 1\n");
     printf("1 2\n");
     printf("2 2.5\n");
     for(i = 3, e = 2.5, factor = 2; i<=9; i++){
	  factor *= i;
	  e += (double)1/factor;
	  printf("%d %1.9lf\n", i, e);
     }

     return 0;
}

